package org.dromara.system.pojo.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.dromara.common.web.core.domain.BaseBO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 代码生成业务表字段 BO。
 *
  * @author mkj
  * @since 2024-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "代码生成业务表字段")
public class GenTableColumnBO extends  BaseBO {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "id")
    private Long columnId;

    @Schema(description = "归属表id")
    private Long tableId;

    @Schema(description = "列名称")
    private String columnName;

    @Schema(description = "列描述")
    private String columnComment;

    @Schema(description = "列类型")
    private String columnType;

    @Schema(description = "JAVA类型")
    private String javaType;

    @Schema(description = "JAVA字段名")
    private String javaField;

    @Schema(description = "是否主键（Y是）")
    private String isPk;

    @Schema(description = "是否自增（Y是）")
    private String isIncrement;

    @Schema(description = "是否必填（Y是）")
    private String isRequired;

    @Schema(description = "是否为插入字段（Y是）")
    private String isInsert;

    @Schema(description = "是否编辑字段（Y是）")
    private String isEdit;

    @Schema(description = "是否列表字段（Y是）")
    private String isList;

    @Schema(description = "是否查询字段（Y是）")
    private String isQuery;

    @Schema(description = "查询方式（等于、不等于、大于、小于、范围）")
    private String queryType;

    @Schema(description = "显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）")
    private String htmlType;

    @Schema(description = "字典类型")
    private String dictType;

    @Schema(description = "排序")
    private Integer columnSort;
}
